package com.dq.controller.api.merchant.in.request;

import com.dq.annotation.validator.valid.IsNullLength;
import com.dq.domain.message.oneself.Message;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author liuhui
 * @date 2019/11/22 0022 09:40:20
 */
@Data
@ApiModel("忘记密码")
public class LostPwdRequest {

    @ApiModelProperty("验证码")
    @NotBlank(message = "验证码不能空")
    public String smdCode;

    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    public String phone;

    @ApiModelProperty("新密码")
    @NotBlank(message = "密码不能为空")
    @IsNullLength(min = 1, max = 6, message = "密码长度不能小于6")
    public String newPwd;
}
